﻿using System.Collections.Generic;
using System;
using System.Linq;

static class ExtensionsForIEnum
{
    public static T GetMin<T>(this IEnumerable<T> collection)
        where T: IComparable<T>
    {
        return collection.Min();
    }

    static void Main()
    {
        List<string> spisak = new List<string> { "test", "something", "else", "here" ,"a"};
        var result = spisak.GetMin<string>();
        Console.WriteLine(result);
    }
}

